Module-level declarations

Types

Link copied to clipboard
Link copied to clipboard
struct sale_info
Link copied to clipboard
entity sale_order
Link copied to clipboard
Link copied to clipboard
entity storefront
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
function calculate_percentage_round_up(price: integer, percentage: decimal): integer
Link copied to clipboard
@extend(check_original_removable) function check_original_movable(griddable_id: integer, original_id: byte_array, location: location): map<text, boolean>
Link copied to clipboard
function claim_expired_listing(account_id: byte_array, order: sale_order)
Link copied to clipboard
Link copied to clipboard
function claim_sales(sales: list<unclaimed_sale>, storefront: storefront)
Link copied to clipboard
@extend(on_placing) function (owner_id: byte_array, original_id: byte_array, griddable_id: integer, current_location: location?, new_location: location)
Link copied to clipboard
@extend(on_pickup) function (griddable_id: integer, location: location)
Link copied to clipboard
function get_sale_amount(original_id: byte_array, price: integer, currency: text): integer
Link copied to clipboard
function transfer_original_from_storefront(storefront_state: storefront_state, account_id: byte_array, original_id: byte_array, amount: integer)
Link copied to clipboard
function transfer_original_to_storefront(storefront_state: storefront_state, account_id: byte_array, original_id: byte_array, amount: integer)

Queries

Link copied to clipboard
@mount("storefronts.get_all_active_listings_for_storefront") query get_all_active_listings_for_storefront(storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_all_non_tradable_prototypes") query get_all_non_tradable_prototypes(): list<text>
Link copied to clipboard
@mount("storefronts.get_order_details") query get_order_details(order_id: text): (order_details: order_detail_info, is_active: boolean)
Link copied to clipboard
@mount("storefronts.get_storefronts_configs") query get_storefronts_configs(): (enabled: boolean, listing_duration_in_millis: integer, public_flat_listing_fee_bjorn: integer, private_flat_listing_fee_bjorn: integer, public_asking_fee_percentage_bjorn: decimal, public_asking_fee_percentage_alice: decimal, private_asking_fee_percentage_bjorn: decimal, private_asking_fee_percentage_alice: decimal)
Link copied to clipboard
@mount("storefronts.get_user_expired_listings_for_storefront") query get_user_expired_listings_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_transactions") query get_user_transactions(account_id: byte_array, cursor: page_cursor): ((sale_records: list<transaction_detail_info>, purchase_records: list<transaction_detail_info>), max_rowid_covered: rowid)
@mount("storefronts.get_user_unclaimed_purchases_for_storefront") query get_user_unclaimed_purchases_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)
Link copied to clipboard
@mount("storefronts.get_user_unclaimed_sales_for_storefront") query get_user_unclaimed_sales_for_storefront(account_id: byte_array, storefront_griddable_id: integer, storefront_location: location, cursor: page_cursor): (data: list<order_detail_info>, max_rowid_covered: rowid)

Operations

Link copied to clipboard
@mount("storefronts.claim_all") operation claim_all(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.create_sale_orders") operation create_sale_orders(orders: list<sale_info>, storefront_id: byte_array, storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
@mount("storefronts.delete_all_user_expired_listings_for_storefront") operation delete_all_user_expired_listings_for_storefront(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.delete_orders") operation delete_orders(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
@mount("storefronts.force_claim_and_delete_all_expired_for_storefront") operation force_claim_and_delete_all_expired_for_storefront(storefront_griddable_id: integer, storefront_location: location, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.purchase_orders_instant") operation purchase_orders_instant(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.purchase_orders_pickup_required") operation purchase_orders_pickup_required(order_ids: list<text>, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("storefronts.register_storefront") operation register_storefront(name: text, relative_locations: list<location>, slots: text, is_public: boolean)
Link copied to clipboard
@mount("storefronts.set_global_storefront_parameters") operation set_global_storefront_parameters(enabled: boolean, listing_duration_in_millis: integer, public_flat_listing_fee_bjorn: integer, private_flat_listing_fee_bjorn: integer, public_asking_fee_percentage_bjorn: integer, public_asking_fee_percentage_alice: integer, private_asking_fee_percentage_bjorn: integer, private_asking_fee_percentage_alice: integer)